// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * CatalogProductSuperAttributeLabel generated by hbm2java
 */
@Entity
@Table(name = "catalog_product_super_attribute_label", catalog = "magento", uniqueConstraints = @UniqueConstraint(columnNames = {
		"product_super_attribute_id", "store_id" }))
public class CatalogProductSuperAttributeLabel implements java.io.Serializable {

	private Integer valueId;
	private CatalogProductSuperAttribute catalogProductSuperAttribute;
	private CoreStore coreStore;
	private Short useDefault;
	private String value;

	public CatalogProductSuperAttributeLabel() {
	}

	public CatalogProductSuperAttributeLabel(
			CatalogProductSuperAttribute catalogProductSuperAttribute,
			CoreStore coreStore) {
		this.catalogProductSuperAttribute = catalogProductSuperAttribute;
		this.coreStore = coreStore;
	}

	public CatalogProductSuperAttributeLabel(
			CatalogProductSuperAttribute catalogProductSuperAttribute,
			CoreStore coreStore, Short useDefault, String value) {
		this.catalogProductSuperAttribute = catalogProductSuperAttribute;
		this.coreStore = coreStore;
		this.useDefault = useDefault;
		this.value = value;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "value_id", unique = true, nullable = false)
	public Integer getValueId() {
		return this.valueId;
	}

	public void setValueId(Integer valueId) {
		this.valueId = valueId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "product_super_attribute_id", nullable = false)
	public CatalogProductSuperAttribute getCatalogProductSuperAttribute() {
		return this.catalogProductSuperAttribute;
	}

	public void setCatalogProductSuperAttribute(
			CatalogProductSuperAttribute catalogProductSuperAttribute) {
		this.catalogProductSuperAttribute = catalogProductSuperAttribute;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "store_id", nullable = false)
	public CoreStore getCoreStore() {
		return this.coreStore;
	}

	public void setCoreStore(CoreStore coreStore) {
		this.coreStore = coreStore;
	}

	@Column(name = "use_default")
	public Short getUseDefault() {
		return this.useDefault;
	}

	public void setUseDefault(Short useDefault) {
		this.useDefault = useDefault;
	}

	@Column(name = "value")
	public String getValue() {
		return this.value;
	}

	public void setValue(String value) {
		this.value = value;
	}

}
